package com.ideal.frame.institutions.controller;

import com.ideal.frame.common.dto.ResponseModel;
import com.ideal.frame.institutions.dto.InstitutionsLicencelistDto;
import com.ideal.frame.institutions.dto.InstitutionsServsysoperDto;
import com.ideal.frame.institutions.service.InstitutionsLicencelistService;
import com.ideal.frame.institutions.service.InstitutionsServsysoperService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/institutions/licencelist")
@Api("服务行业")
public class InstitutionsLicencelistController {

    @Autowired
    private InstitutionsLicencelistService licencelistService;

    @ApiOperation(value = "查询服务行业", httpMethod = "GET", produces = "application/json", response = ResponseModel.class)
    @GetMapping("getByGnrlid")
    public ResponseModel<List<InstitutionsLicencelistDto>> getByGnrlid(@RequestParam("gnrlid") String gnrlid) {
        return ResponseModel.success(licencelistService.getByGnrlid(gnrlid));
    }
}
